<?php
namespace App\Http\Controllers;

use App\Models\Region;
use App\Models\Spot;

class RegionController extends WxBaseController{
    protected $except=['index','menu'];
    public function index(){
        $regions = Region::get();
        editImageUrl($regions);
        return $this->apiReturn(true,'success',$regions);
    }
    public function menu(){
        $regions = Region::all();
        foreach ($regions as $item) {
            $item->spots;
        }
        return $this->apiReturn(true,'success',$regions);
    }
}